<?php
// +----------------------------------------------------------------------

namespace app\mall\validate;

use think\Validate;

/**
 * 商品验证器
 * @package app\mall\validate
 */
class Goods extends Validate
{
    // 定义验证规则
    protected $rule = [
        'cid|所属分类'    => 'require',
		'title|商品标题'    => 'require',
		'summary|简介'    => 'require|length:8,50',
    ];
}
